<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlertTypeToShopCameraTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('shop_camera', function (Blueprint $table) {
            $table->unsignedTinyInteger("queueSwitch")->default(0)->comment("叫号开关 0:关闭,1:打开")->after('status');
            $table->unsignedTinyInteger("soundSwitch")->default(0)->comment("声音开关 0:关闭,1:打开")->after('queueSwitch');
            $table->unsignedTinyInteger("bannerType")->default(0)->comment("类型 8-商屏素材组合，9-商屏素材单品")->after('soundSwitch');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('shop_camera', function (Blueprint $table) {
            $table->dropColumn('queueSwitch');
            $table->dropColumn('soundSwitch');
            $table->dropColumn('bannerType');
        });
    }
}
